﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.SqlClient;
using Hongapo_Common;

namespace Hongapo_Services
{
    public class Comon
    {
        /// <summary>
        /// 生成流水号
        /// </summary>
        /// <param name="type">业务编号</param>
        /// <returns></returns>
        public static string GetNumber(int type)
        {
            SqlParameter[] param = { new SqlParameter("@type", type) };
            return DbHelperSQL.RunProcedure("Up_T_CommonGen_Get", param, "tables").Tables[0].Rows[0][0].ToString();
        }
    }
}
